
format ELF64 executable 3

segment readable executable

entry $
    mov	eax, 1      ; sys_write
    mov	edi, 1      ; STDOUT
    mov rsi, msg
    mov	edx, msgsize
    syscall

    mov	eax, 60     ; sys_exit
    mov	edi, 0      ; exit code
    syscall

segment readable writeable

msg db 'Hello world!', 0xa
msgsize = $ - msg
